﻿using System;
using System.Data;
using System.Configuration;
using Dcms.BLL;
using Dcms.Model;
using System.Collections;
using System.Text;

public partial class Manage_Welcom : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        CompetenceLib CL = new CompetenceLib();
        CL.IsLogin();

        if (!IsPostBack)
        {
            //if (li.IsCoder)
            //{
            //    this.litPopedom.Text = "<strong>您拥有网站后台管理的全部权限</strong>";
            //    this.litPartName.Text = "管理员";
            //}
            //else
            //{
            //    this.litPartName.Text = li.RoleName;
            //    ManageModelHandler mmh = new ManageModelHandler();
            //    ModelPopedomHandler mph = new ModelPopedomHandler();
            //    ArrayList al = mmh.GetModelByStyle(0);
            //    ArrayList PopedomAl = mph.GetAllModelPopedom();
            //    StringBuilder sb = new StringBuilder();
            //    for (int i = 0; i < al.Count; i++)
            //    {
            //        ManageModel mm = (ManageModel)al[i];
            //        if (li.Model.Contains(mm.Mmo_Key))
            //        {
            //            sb.Append("<strong>" + mm.Mmo_Name + "：</strong>" + "\n");
            //            sb.Append("<ol>");
            //            for (int j = 0; j < PopedomAl.Count; j++)
            //            {
            //                ModelPopedom mp = (ModelPopedom)PopedomAl[j];
            //                if (li.Popedoms.Contains(mm.Mmo_Key + "-" + mp.Mpo_Key))
            //                {
            //                    sb.Append("\t" + "<li>" + mp.Mpo_Name + "；</li>" + "\n");
            //                }
            //            }
            //            sb.Append("</ol>");
            //        }
            //    }
            //    this.litPopedom.Text = sb.ToString();
            //}
        }
    }
}
